package cn.zxcoder.entity.pay;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author zx
 * @since 2023-05-08
 */
@TableName("pay_mode")
@ApiModel(value = "Mode对象", description = "支付方式")
@Data
public class Mode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("支付方式名称")
    private String name;

    @ApiModelProperty("子支付方式(英文)")
    private String subName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getSubname() {
        return subName;
    }

    public void setSubname(String subname) {
        this.subName = subname;
    }

    @Override
    public String toString() {
        return "Mode{" +
            "id=" + id +
            ", name=" + name +
            ", subName=" + subName +
        "}";
    }
}
